from django.http import HttpResponse
from django.template.context import RequestContext
from django.shortcuts import render_to_response
from fund_registration.forms import FundingRegistrationForm

def registration(request):
    if request.method == 'POST':
        form = FundingRegistrationForm(request.POST)
        if form.is_valid():
            form.save()
    else:
        form = FundingRegistrationForm()
        
    return render_to_response('fund_registration/registration.html',
        { 'form': form },
        context_instance=RequestContext(request)
    )